# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header:  $

EAPI="2"

inherit kde4-base
DESCRIPTION="K3b, KDE CD Writing Software"
HOMEPAGE="http://www.k3b.org/"
LICENSE="GPL-2"
# ESVN_UPDATE_CMD="svn update --revision 945305"
# ESVN_FETCH_CMD="svn checkout --revision 945305"
ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/extragear/multimedia/k3b"
SLOT="4.3"
KEYWORDS=""

IUSE="alsa css dvd dvdr encode ffmpeg flac hal mp3 musepack musicbrainz
        sndfile vcd vorbis emovix"

DEPEND="hal? ( sys-apps/hal )
        media-libs/libsamplerate
        media-libs/taglib
        >=media-sound/cdparanoia-3.9.8
        sndfile? ( media-libs/libsndfile )
        ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20080326 )
        flac? ( media-libs/flac )
        mp3? ( media-libs/libmad )
        musepack? ( media-libs/libmpcdec )
        vorbis? ( media-libs/libvorbis )
        musicbrainz? ( =media-libs/musicbrainz-2* )
        encode? ( media-sound/lame )
        alsa? ( media-libs/alsa-lib )
        dvd? ( media-libs/libdvdread )"


RDEPEND="${DEPEND}
        virtual/cdrtools
	sys-auth/policykit
        >=app-cdr/cdrdao-1.1.7-r3
        media-sound/normalize
        dvdr? ( app-cdr/dvd+rw-tools )
        css? ( media-libs/libdvdcss )
        encode? ( media-sound/sox
                                media-video/transcode )
        vcd? ( media-video/vcdimager )
        emovix? ( media-video/emovix )"


src_unpack() {
	subversion_src_unpack
	cd "$S"
}
